//
//  main.cpp
//  CPlusTest
//
//  Created by yao zhaofeng on 2018/9/4.
//  Copyright © 2018年 YaoZhaofeng. All rights reserved.
//

#include <iostream>
#include "code_convert.hpp"
#include "conversion.h"

//int main(int argc, const char * argv[]) {
//int main() {
//    const char *testContent = "<MsgTrans ProtocolVersion=\"2\"><CharFormat Name=\"微软雅黑\" Size=\"210\" IsBold=\"0\" IsItalic=\"0\" IsUnderline=\"0\" Color=\"0 0 0\"/><Content>不过这一</Content></MsgTrans>";
////    const char* testContent = "不";
//    printf("原始内容:: %s\n", testContent);
//
//    std::string gbk = jjwf::codecvt::utf8_to_gbk(testContent);
////    std::string gbk = utf8_to_gbk(testContent);
//    printf("\n转换为gbk:: %s\n", gbk.c_str());
//
//    std::string utf8 = jjwf::codecvt::gbk_to_utf8(gbk);
////    std::string utf8 = gbk_to_utf8(gbk);
//    printf("\n再反转utf8:: %s\n\n", utf8.c_str());
//
//    char ss[10] = "2345";
//    gets(ss);
//    strcat(ss, "6789");
//    int a = 3;
//    a = a%2 == 0 ? 1 : 0;
//
//    printf("\nresult::%s, %d\n", ss, a);
//
//    return 0;
//}


//void Func(char str_arg[100]){
//    printf("%d\n",sizeof(str_arg));
//}
//
//int main(void){
//    char str[]="Hello";
//    printf("%d\n",sizeof(str));
//    printf("%d\n",strlen(str));
//    char*p=str;
//    printf("%d\n",sizeof(p));
//    Func(str);
//
//    printf("%d\n",sizeof(str));
//}


#include <iostream>
int main() {
//    unsigned char *p1;
//    unsigned long *p2;
//    p1=(unsigned char *)0x801000;
//    p2=(unsigned long *)0x810000;
//    // cout<<p1 +5;
//    std::cout<< p2+5;
    int a = 5;
    int b = 1;
    int c = 2;
    a -= b + c;
    printf("%d",a);
    return -1;
}
